package com.example.demo.model.admin.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.Results.Result;
import com.example.demo.model.admin.admin.entity.EditPassReq;
import com.example.demo.model.admin.admin.entity.ShopAdmin;
import com.example.demo.model.admin.admin.entity.reg.LoginReg;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

public interface ShopAdminService extends IService<ShopAdmin> {

    /**
     * 登录方法
     * @param request
     * @param loginReg
     */
    Result doLogin(HttpServletRequest request, LoginReg loginReg);

    /**
     * 注册
     * @param request
     * @param loginReg
     * @return
     */
    Result doReg(HttpServletRequest request, LoginReg loginReg);

    /**
     * 跳转到修改密码页面
     * @return
     */
    ModelAndView editPass();

    /**
     * 修改密码
     * @param request
     * @param editPass
     * @return
     */
    Result doEditPass(HttpServletRequest request, EditPassReq editPass);
}
